public class Example16 {
    public static  void main(String[]args){
        int min=5;int max=5;
        int[]b =new int []{1,2,3,4,5,6,7,8,9,10,11};
        for(int i=0;i<b.length;i++){
            if (b[i]<min)min=b[i];
            if (b[i]>max)max=b[i];
        }
        System.out.println("数组的最小值是："+min);
        System.out.println("数组的最大值是："+max);
    }
}
